css: Allow transitioning different-size shadows
authorMatthias Clasen <mclasen@redhat.com>
Tue, 2 Feb 2021 20:22:32 +0000 (15:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 16:41:24 +0000 (11:41 -0500)
The code handles it just fine. The length check was
an erronous addition.

gtk/gtkcssshadowvalue.c

index f66d34205f3a6b83430b0ecde6d1423ce08709a3..0429c44be6113d59c540891ffd1ed846fdc33033 100644 (file)
@@ -173,9 +173,6 @@ gtk_css_value_shadow_transition (GtkCssValue *start,
   guint i, len;
   ShadowValue *shadows;
 
-  if (start->n_shadows != end->n_shadows)
-    return NULL;
-
   if (start->n_shadows > end->n_shadows)
     len = start->n_shadows;
   else